package com.hm.common.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ApplicationContextRegister implements ApplicationContextAware {
	private Logger logger = LoggerFactory.getLogger(getClass());
 
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		BeanUtils.setApplicationContext(applicationContext);
		logger.debug("ApplicationContext registed");
	}
}
